import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import './style.css'
import { 
  Button,
  Field,
  Icon,
  Toast,
  NavBar,
  Loading
} from 'vant'
import 'vant/lib/index.css'

const app = createApp(App)

// 注册 Vant 组件
app.use(Button)
app.use(Field)
app.use(Icon)
app.use(Toast)
app.use(NavBar)
app.use(Loading)

app.use(router)

app.mount('#app') 